import { createRouter, createWebHistory } from 'vue-router'
import NewHomeView from '../views/NewHomeView.vue'
import NewHomeView2 from '../views/NewHomeView2.vue'
import ChatView from '../views/ChatView.vue'
import ChatView2 from '@/views/ChatView2.vue'
import LoginView from '../views/LoginView.vue'
import LoginView2 from '../views/LoginView2.vue'
import CallbackView from '../views/CallbackView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: NewHomeView
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView
    },
    {
      path: '/login2',
      name: 'login2',
      component: LoginView2
    },
    {
      path: '/callback',
      name: 'callback',
      component: CallbackView
    },
    {
      path: '/chat/:conversationId',
      name: 'chat',
      component: ChatView,
      props: true
    }
  ]
})

export default router